package guigu23y3m6d;

public class Bank1 {
		private Customer1[] customer1;
		private int numberOfCustomer1;
		public Bank1() {
			customer1 = new Customer1[20];
		}
		public void addCustomer1(String f,String l) {
			Customer1 customer = new Customer1(f, l);
			customer1[numberOfCustomer1++]=customer;
		}
		public int getNumberOfCustomer1() {
			return numberOfCustomer1;
		}
		public Customer1 getCustomer1(int index) {
			//public Customer1 getCustomer1(int index) {
			if(index >=0 && index < numberOfCustomer1) {
				return customer1[index];
			}
			return null;
		}
		
}	
